package java_thinking.unit_5._5_1;//: initialization/E01_StringRefInitialization.java
/****************** Exercise6 01 ****************
 * Create a class with an uninitialized
 * String reference. Demonstrate that this
 * reference is initialized by Java to null.
 ***********************************************/

/**
 * @author asd730520@live.com
 */
public class E01_StringRefInitialization {
  String s;
  int s1;
  char s2;
  byte s3;
  float s4;
  double s5;
  Integer s6 ;
  Double s7 ;
  Character s8 ;
  public static void main(String args[]) {
    E01_StringRefInitialization sri = new E01_StringRefInitialization();
    System.out.println("sri.s = " + sri.s);
    System.out.println("sri.s1 = " + sri.s1);
    System.out.println("sri.s2 = " + sri.s2);
    System.out.println("sri.s3 = " + sri.s3);
    System.out.println("sri.s4 = " + sri.s4);
    System.out.println("sri.s5 = " + sri.s5);
    System.out.println("sri.s6 = " + sri.s6);
    System.out.println("sri.s7 = " + sri.s7);
    System.out.println("sri.s8 = " + sri.s8);
  }
} /* Output:
sri.s = null
*///:~
